package com.powernode;

import com.powernode.dao.SysUserDao;
import com.powernode.entity.SysUser;
import jakarta.annotation.Resource;
import org.junit.Test; // 需要用junit下的test


import static org.junit.jupiter.api.Assertions.assertNotNull;



//@SpringBootTest(classes = {databaseAuthentication.class})  // 测试类 或者创建相同的路径，或者添加该注解
public class testSysUserDao extends CommonTest{
    @Resource
//    @Autowired
    private SysUserDao sysUserDao;


    @Test
    public void testGetByUserName() {
        SysUser sysUser = sysUserDao.getByUserName_1("obama");
        assertNotNull(sysUser);

    }

}
